//
//  GMSMarker+UAVModel.m
//  SDK开发版本
//
//  Created by 北京国泰北斗科技有限公司 on 16/7/11.
//  Copyright © 2016年 北京国泰北斗科技有限公司. All rights reserved.
//

#import "GMSMarker+UAVModel.h"
#import <objc/runtime.h>


static char flashColorKey;

@implementation GMSMarker (UAVModel)

- (void)setUAVModel:(UAVModel *)runTime_model{

    objc_setAssociatedObject(self, &flashColorKey, runTime_model, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UAVModel *)runTime_model{

    return objc_getAssociatedObject(self, &flashColorKey);
}

- (NSArray *)items{
    return objc_getAssociatedObject(self, @selector(items));
}
 
- (void)setItems:(NSArray *)items{
    objc_setAssociatedObject(self, @selector(items), items, OBJC_ASSOCIATION_RETAIN);
}

- (AirplaneItem *)item{
    return objc_getAssociatedObject(self, @selector(item));
}

- (void)setItem:(AirplaneItem *)item{
    objc_setAssociatedObject(self, @selector(item), item, OBJC_ASSOCIATION_RETAIN);
}

- (THAirplane *)thItem{
    return objc_getAssociatedObject(self, @selector(thItem));
}

- (void)setThItem:(THAirplane *)thItem{
    objc_setAssociatedObject(self, @selector(thItem), thItem, OBJC_ASSOCIATION_RETAIN);
}

@end
